

$(".btnadpt").click(function(){
	$.ajax({
		url:"./php/logOn.php",
		type:"post",
		data:{
			user:$("#username").val(),
			password:$("#pwd").val()
		},
		success:function(resText){
			if(resText == "成功"){
				localStorage.setItem('id',$("#username").val())
				location.href="index.html";
			
			}else{
				alert("账号或密码错误")
			}
		}
	})
})
